import axios from 'axios'

// 对axios返回的数据进行处理
axios.interceptors.response.use(function (response){
	return response.data.data
})

export let getHome = ()=>{
	return axios.get('/static/mock/index.json')
}

export let getCities = ()=>{
	return axios.get('/static/mock/city.json')
}

export let getLike = (id)=>{
	return axios.get('/static/mock/detail/'+id+'.json')
}

export let getWeek = (id)=>{
	return axios.get('/static/mock/week/'+id+'.json')
}
